package gregorianCalendar;

import java.util.Calendar;
import java.util.GregorianCalendar;

public class gregorianCalendar {

	public static void main(String[] args) {
		
		GregorianCalendar cal = new GregorianCalendar();
		GregorianCalendar myBirthday = new GregorianCalendar(1996, Calendar.OCTOBER, 9);
		
		cal.add(Calendar.DAY_OF_MONTH, 100);
		
		String[] month = { "January", "February", "March", "April", "May", "June", "July",
							"August", "September", "October", "November", "December"};
		String[] day = { "", "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"};
		
		System.out.println(month[cal.get(Calendar.MONTH)] + " " + cal.get(Calendar.DATE) + ", "  + cal.get(Calendar.YEAR));
		System.out.println(day[myBirthday.get(Calendar.DAY_OF_WEEK)]);
		
		myBirthday.add(Calendar.DAY_OF_MONTH, 10000);
		System.out.println(month[myBirthday.get(Calendar.MONTH)] + " " + myBirthday.get(Calendar.DATE) + ", "  + myBirthday.get(Calendar.YEAR));
		
		
		

	}

}